package com.dd;

import com.dd.service.StuService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        //创建IOC容器
        ApplicationContext ctx = new ClassPathXmlApplicationContext("springConfig.xml");

        StuService stuService = ctx.getBean(StuService.class);
        stuService.getList();
    }
}
